class Issue {
     // relationships  
     static belongsTo = Task
   
     // fields  
     Task task
     String name
     String type  
     User submitter  
     User assigned
     String description  
     String priority = "Baja"
     String status = "New"  
     Integer appliedHours = 0
     Date dateCreated = new Date() 
   
     // constraints  
     static constraints = {  
         task()  
         type(inList: ["Todo", "Funcionalidad"])  
         submitter()  
		 assigned()
		 appliedHours()
         description(size: 0..5000)  
         priority(inList: ["Baja", "Media", "Alta"])  
         status(inList: ["New", "Accepted", "Closed", "Won't Fix"])  
     }  
}
